Skip to content

Move rm to before test#5

Merged
atamon merged 1 commit intomasterfrom
cleanup-before-test
Oct 6, 2016
Merged

Move rm to before test#5
atamon merged 1 commit intomasterfrom
cleanup-before-test

Conversation

@solsson
Copy link
Contributor

@solsson solsson commented Sep 22, 2016

Not sure if this is a good idea, but I think so.

I think we need rm due to the confusion I myself experience with old logs shown in current docker-compose run.

But I also think we should avoid rm after the test, in case you need to analyze results.

@solsson
Copy link
Contributor Author

solsson commented Sep 22, 2016

My most interesting build-contracts project atm is Reposoft/docker-httpd#4. These tests keep state under /tmp, which is sometimes helpful to inspect.

cd $ROOT/build-contracts/
for compose_file in $(ls | grep .yml); do
docker_compose="docker-compose -f $compose_file"
$docker_compose rm -f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could just remove this altogether? As we're doing --force-recreate anyways?

@atamon atamon merged commit 75bb835 into master Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants